package org.scau.studentevaluation.client;

import org.scau.studentevaluation.entity.dos.ActDO;
import org.scau.studentevaluation.entity.response.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.Valid;
import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName: ActClient
 * @Description: TODO
 * @Author: sunslikes
 * @Date: 2020/9/4 3:32
 * @Version: 1.0
 */
@FeignClient(value = "eureka-client-act", fallback = ActClientHystrix.class)
public interface ActClient {
    /**
     * 	通过actId从act中获取act列表（通过feign调用act模块中获取Act的方法）
      */
    @RequestMapping(value = "/act/findAct/{actId}", method = RequestMethod.GET)
    ActDO findAct(@RequestParam("actId") Long actId);

}
